<%--
  Created by IntelliJ IDEA.
  User: Squking
  Date: 2018/5/15
  Time: 0:00
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>购物车</title>
</head>
<body>
    <form:form method="POST" action="/action/buyCart">
        <table border="1" cellpadding="10" cellspacing="0">
            <tr>
                <th>订单号</th>
                <th>订单内容</th>
                <th>总价格</th>
            </tr>
            <c:if test="${command.listBook.size()>0}">
            <tr>
                <th>${command.orderNum}</th>
                <th>${command.orderContent}</th>
                <th>${command.sum}</th>
            </tr>
            </c:if>
        </table>
        <c:if test="${command.listBook.size()>0}">
            <input type="submit" value="购买"/>
        </c:if>
    </form:form>
    <a href="../../index.jsp">返回</a>
</body>
</html>
